package com.kisszoltan.android.passivity.event;

import android.view.View;
import android.widget.AdapterView;
import android.widget.CheckedTextView;
import android.widget.AdapterView.OnItemClickListener;

public class GridClickListener implements OnItemClickListener {

    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        if (view instanceof CheckedTextView) {
            CheckedTextView cView = ((CheckedTextView) view);
            cView.setChecked(!cView.isChecked());
        }
    }

}
